import Vue from 'vue'

// 导入element-ui组件库
import ElementUI from 'element-ui'

// 引入axios作为发送请求的
import axios from 'axios'

import VueQuillEditor from 'vue-quill-editor'
// 引入自己全局注册的面包屑组件并全局注册
import myHeardBread from '@/components/myHeardBread'
import cc from '@/components/cc'
import Channel from '@/components/channel'

// 全局注册 cover组件
import cover from '@/components/cover'

// 全局引入富文本编辑器
import 'quill/dist/quill.bubble.css' // for bubble theme
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css'

import 'element-ui/lib/theme-chalk/index.css'

Vue.use(VueQuillEditor)

// 配置全局的axios
// axios.defaults.baseURL='http://localhost:3000'
Vue.prototype.$axios = axios
Vue.use(ElementUI)

// 全局注册面包屑导肮
Vue.component('myHeardBread', myHeardBread)
Vue.component('cover', cover)
Vue.component('www', cc)
Vue.component('channel', Channel)
